package com.es.www.kyl.bean.res.client;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author Estranger
 * @date 2025/8/13
 * description
 */
@Data
public class QuestionDetailVO implements Serializable {
	private static final long serialVersionUID = 9012188158917207200L;

	@ApiModelProperty(value = "题干信息")
	private QuestionStemVo questionStem;

	@ApiModelProperty(value = "选项信息")
	private List<QuestionOptionVO> questionOptionList;

	@ApiModelProperty(value = "解析信息")
	private List<QuestionAnalysisVO> questionAnalysisList;

	@Data
	public static class QuestionStemVo implements Serializable {

		private static final long serialVersionUID = -7177458899698167321L;

		@ApiModelProperty(value = "题目ID")
		private Integer questionId;

		@ApiModelProperty(value = "题目内容")
		private String questionContent;

		@ApiModelProperty(value = "题目类型 1.单选; 2.多选; 3.填空; 4.判断")
		private String questionType;

		@ApiModelProperty(value = "题目图片")
		private List<String> questionImageList;

		@ApiModelProperty(value = "题目视频")
		private List<String> questionVideoList;

	}

	@Data
	public static class QuestionOptionVO implements Serializable {

		private static final long serialVersionUID = -6664613398165791572L;

		@ApiModelProperty(value = "选项ID")
		private Integer optionId;

		@ApiModelProperty(value = "选项内容")
		private String optionContent;

		@ApiModelProperty(value = "是否正确 true: 正确; false: 错误")
		private Boolean correctFlag;

	}

	@Data
	public static class QuestionAnalysisVO implements Serializable {
		private static final long serialVersionUID = 5037590861308241948L;

		@ApiModelProperty(value = "解析片段的类型 1: text；2:image; 3:video")
		private String type;

		@ApiModelProperty(value = "解析片段的内容")
		private String content;

	}
}
